package org.dawning.shop.common.commands.inventory;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.axonframework.commandhandling.TargetAggregateIdentifier;
import org.dawning.shop.common.domain.order.OrderId;

/**
 * Created by miou on 2017/6/15 0015.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReleaseInventoryCommand {

    @TargetAggregateIdentifier
    private OrderId orderId;
    /**
     * 商品放入的库存的Id
     */
    private String inventoryId;

    private Long amount;
}
